<?php

/**
 * Description of settings_model
 *
 * @author iLyas
 */
class Settings_model extends CI_Model{
    
	
	function avatar_into_db($path_to_thumb, $username){
		
		$data = array(
               'user_avatar' => $path_to_thumb,
            );

		$this->db->where('user_pseudo', $username);
		$this->db->update('user', $data);

	}    
}

?>
